//token封装

//设置一个固定的key值
const KEY='e823d0c4-df00-4450-b76d-66a2a3b6c3d4'

//设置token
const setToken = (token) => {
  sessionStorage.setItem('token', token);
};

//获取token
const getToken = () => {
  return sessionStorage.getItem('token');
};

//删除token
const clearToken = () => {
  sessionStorage.setItem('token', '');
}


export {
  setToken,
  getToken,
  clearToken
}



